//===============================================================================
// Microsoft patterns & practices
// Guidance Explorer Offline Client
//===============================================================================
// Copyright  Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================



using System.Collections.Generic;

namespace GuidanceExplorer.Model
{
    public class FieldCollection : Dictionary<string,Field>
    {
        public string GetDisplayName(string name)
        {
            if (ContainsKey(name))
            {
                return this[name].Caption;
            }
            else
            {
                return name;
            }
        }
    }
}

